package com.sheet.controller;

import com.sheet.service.FeignService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created with IntelliJ IDEA.
 * Description
 *
 * @Author IronSheet
 * @Date 2022/3/2 13:43
 */
@RestController
public class TestController {

    @Autowired
    private FeignService feignService;


    @GetMapping("/conn/{id}")
    public String testConnect(@PathVariable int id){

        return feignService.getGoods(id);
    }

}
